package com.fernfx.xingtan.my.ui;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.fernfx.xingtan.R;
import com.fernfx.xingtan.common.base.BaseActivity;
import com.fernfx.xingtan.my.contract.MyPurseContract;
import com.fernfx.xingtan.my.presenter.MyPursePresenter;

import butterknife.OnClick;

/**
 * Created by admin on 2018/8/16.
 * 我的钱包
 */

public class MyPurseActivity extends BaseActivity implements View.OnClickListener, MyPurseContract.View{
    private MyPurseContract.Presenter presenter;

    public static void start(Context context) {
        Intent intent = new Intent(context, MyPurseActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_my_purse;
    }

    @Override
    protected void initView() {
        presenter = new MyPursePresenter<>();
        setToolbarTitle("我的钱包");
    }

    @Override
    protected void initData() {
        requestArgsMap.clear();
        presenter.request(requestArgsMap);
    }

    @OnClick({R.id.give_get_money_rlt,R.id.small_change_rlt,R.id.my_diamonds_rlt,R.id.my_blacks_card_rlt,R.id.small_change_toast_iv})
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.give_get_money_rlt:
                //收付款
                break;
            case R.id.small_change_rlt:
                //零钱
                MyPocketMoneyActivity.start(mContext);
                break;
            case R.id.my_diamonds_rlt:
                //我的钻石
                MyDiamondsActivity.start(mContext);
                break;
            case R.id.my_blacks_card_rlt:
                //我的银行卡
                MyBackCardsListActivity.start(mContext);
                break;
            case R.id.small_change_toast_iv:

                break;
        }
    }

    @Override
    public BaseActivity getActivity() {
        return this;
    }
}
